
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>我的笔记</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="Termux,Linux学习笔记，为了记笔记，又顺便学习了点hexo">
<meta property="og:type" content="website">
<meta property="og:title" content="我的笔记">
<meta property="og:url" content="https://gitee.com/superigbt_superigbt/superigbt_superigbt/page/7/index.html">
<meta property="og:site_name" content="我的笔记">
<meta property="og:description" content="Termux,Linux学习笔记，为了记笔记，又顺便学习了点hexo">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="Frank.Li">
<meta name="twitter:card" content="summary">
  
    <link rel="alternative" href="/atom.xml" title="我的笔记" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
<link rel="stylesheet" href="/css/style.css">

  <!--[if lt IE 9]><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.min.js"></script><![endif]-->
  
<meta name="generator" content="Hexo 6.0.0"></head>
<body>
<div id="container">
  <div id="wrap">
    <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">我的笔记</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">首页</a>
        
          <a class="main-nav-link" href="/archives">按时间</a>
        
          <a class="main-nav-link" href="/about">关于我</a>
        
          <a class="main-nav-link" href="/categories/%E6%91%98%E6%8A%84%E4%B8%8E%E9%9A%8F%E7%AC%94">摘抄，随笔</a>
        
          <a class="main-nav-link" href="/categories/%E5%BC%80%E5%85%B3%E7%94%B5%E6%BA%90">开关电源</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//www.baidu.com/baidu" method="get" accept-charset="utf-8" class="search-form">
          <input type="search" name="word" maxlength="20" class="search-form-input" placeholder="Search">
          <input type="submit" value="" class="search-form-submit">
          <input name=tn type=hidden value="bds">
          <input name=cl type=hidden value="3">
          <input name=ct type=hidden value="2097152">
          <input type="hidden" name="si" value="gitee.com/superigbt_superigbt/superigbt_superigbt">
        </form>
      </div>
    </div>
  </div>
</header>
    <div class="outer">
      <section id="main">
  
    <article id="post-termux-caddy-website" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/10/02/termux-caddy-website/" class="article-date">
  <time datetime="2020-10-02T15:22:00.000Z" itemprop="datePublished">2020-10-02</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/termux/">termux</a>►<a class="article-category-link" href="/categories/termux/caddy/">caddy</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/10/02/termux-caddy-website/">Termux下利用caddy安装suiteCRM</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h5 id="一-安装必须"><a href="#一-安装必须" class="headerlink" title="一 安装必须"></a>一 安装必须</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">$ pkg install caddy</span><br><span class="line">$ pkg install php</span><br><span class="line">$ pkg install mariadb</span><br></pre></td></tr></table></figure>
<h5 id="二-编辑-Caddyfile"><a href="#二-编辑-Caddyfile" class="headerlink" title="二 编辑 Caddyfile"></a>二 编辑 Caddyfile</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ mkdir vim Caddyfile</span><br></pre></td></tr></table></figure>
<blockquote>
<p>http://:8080 {<br>  encode zstd gzip<br>  root * /data/data/com.termux/files/home/mywww # 此句可省略<br>  file_server<br>  php_fastcgi localhost:9000</p>
<p>}</p>
</blockquote>
<h5 id="三-安装-phpmyAdmin"><a href="#三-安装-phpmyAdmin" class="headerlink" title="三 安装 phpmyAdmin"></a>三 安装 phpmyAdmin</h5><ol>
<li>$ pkg install phpmyadmin<br>$ ln -s ***</li>
<li>或从网上下载phpmyadmin的压缩文档，解压后放在 ~/mywww目录下</li>
</ol>
<h5 id="启动各项"><a href="#启动各项" class="headerlink" title="启动各项"></a>启动各项</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">$ php-cgi -b 9000 &amp;</span><br><span class="line">$ mysqld <span class="comment"># (要关闭只能用ctl+C)</span></span><br><span class="line">$ nohup mysqld &amp; <span class="comment"># 后台启动mysql,执行行会显示mysql的ID，可用 kill -9 ID号来中止</span></span><br><span class="line">$ caddy start <span class="comment"># 后台启动 caddy</span></span><br></pre></td></tr></table></figure>
<p>每次查进程杀死mysql太麻烦了。可以用 kill -9 <code>pgrep mysql</code> 来处理。</p>
<h5 id="验证"><a href="#验证" class="headerlink" title="验证"></a>验证</h5><ol>
<li>浏览器 <a target="_blank" rel="noopener" href="http://localhost:8080/">http://localhost:8080</a> 能进去证明 caddy成功</li>
<li><a target="_blank" rel="noopener" href="http://localhost:8080/phpMyAdmin/index.php%E5%A6%82%E6%9E%9C%E6%9C%89%EF%BC%8C%E5%B0%B1%E8%AF%81%E6%98%8Ephp%E5%8F%AF%E7%94%A8%E3%80%82">http://localhost:8080/phpMyAdmin/index.php如果有，就证明php可用。</a></li>
<li>$ whoami 查到用户名 比如 u0_123<br>$ mysql -u u0_123 或 mysql -u $(whoami) 默认密码为空<br>可进去，证明mariadb也成功</li>
<li>采用phpMyAdmin进行mysql配置的话，由地用户名的密码为空，是不允许进去的。这里就要修phpMyAdmin的配置，允许空密码进入。<br>如果是安装版的phpMyAdmin则修改 /usr/share/phpmyadmin/libraries/config.default.php文件。<br>如果是copy版的phpMyAdmin，则修改 mywww/phpmyadmin/libaraies/config.default.php文件<blockquote>
<p>$cfg[‘server’][$i][‘nopassword’]=false;<br>$cfg[‘server’][$i][‘AllowNopassword’]=false;<br>把false的值改为true</p>
</blockquote>
<h5 id="四-mysql设置"><a href="#四-mysql设置" class="headerlink" title="四 mysql设置"></a>四 mysql设置</h5>mysql有两个用户，一个是root，不知道密码，一个是本手机用户，密码为空可以登录<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">$ nohup mysqld &amp; <span class="comment">#启动mysql服务</span></span><br><span class="line">$ mysql -u $(whoami) <span class="comment"># 以termux用户登录。或直接 mysql 也行</span></span><br><span class="line">$ mysql&gt; use mysql ;</span><br><span class="line">$ mysql&gt; show databases; <span class="comment">#显示当前数据库列表</span></span><br><span class="line">$ mysql&gt; <span class="built_in">set</span> password <span class="keyword">for</span> <span class="string">&#x27;root&#x27;</span>@<span class="string">&#x27;localhost&#x27;</span> = password(<span class="string">&#x27;你设置的密码&#x27;</span>); <span class="comment">#为root用户设新密码，这样就能以root方式登录了</span></span><br><span class="line">$ mysql&gt; flush privileges; <span class="comment"># 退出</span></span><br><span class="line">$ mysql&gt; quit; <span class="comment"># 退出</span></span><br></pre></td></tr></table></figure></li>
</ol>

      
    </div>
    <footer class="article-footer">
      
        <a data-url="https://gitee.com/superigbt_superigbt/superigbt_superigbt/2020/10/02/termux-caddy-website/" data-id="cl7zulc84004qeiq58w7khs24" class="article-share-link" data-share="baidu" data-title="Termux下利用caddy安装suiteCRM">分享到</a>
      

      

      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/caddy/" rel="tag">caddy</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/termux/" rel="tag">termux</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%BB%BA%E7%AB%99/" rel="tag">建站</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-ubuntu-reload-wifi" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/10/02/ubuntu-reload-wifi/" class="article-date">
  <time datetime="2020-10-02T02:57:24.000Z" itemprop="datePublished">2020-10-02</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/ubuntu%E7%BB%8F%E9%AA%8C/">ubuntu经验</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/10/02/ubuntu-reload-wifi/">ubuntu19.04后，待机后wifi失联，如何找回？</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h3 id="ubuntu18-04后的版本，18-10忘记有没有这个缺陷了，反正是19-04就有，待机回来，wifi就的不到了。只能重启动才能找回。"><a href="#ubuntu18-04后的版本，18-10忘记有没有这个缺陷了，反正是19-04就有，待机回来，wifi就的不到了。只能重启动才能找回。" class="headerlink" title="ubuntu18.04后的版本，18.10忘记有没有这个缺陷了，反正是19.04就有，待机回来，wifi就的不到了。只能重启动才能找回。"></a>ubuntu18.04后的版本，18.10忘记有没有这个缺陷了，反正是19.04就有，待机回来，wifi就的不到了。只能重启动才能找回。</h3><p>有没有解决办法呢，后来在网上找了好久，才找到。是新的版本不支持老wifi协议了，可是家里的路由器还是老的。<br>方法如下：</p>
<h5 id="第一步-（也可不用）"><a href="#第一步-（也可不用）" class="headerlink" title="第一步 （也可不用）"></a>第一步 （也可不用）</h5><blockquote>
<p>vim /etc/modprobe.d/iwlwifi.conf 在最后一行加入<br>options iwlwifi 11n_disable=1</p>
</blockquote>
<h5 id="第二步-ubunt20-04中试了，不用第一步，直接这一步也行"><a href="#第二步-ubunt20-04中试了，不用第一步，直接这一步也行" class="headerlink" title="第二步 (ubunt20.04中试了，不用第一步，直接这一步也行)"></a>第二步 (ubunt20.04中试了，不用第一步，直接这一步也行)</h5><blockquote>
<p>sudo modprobe -r iwlwifi<br>sudo modprobe iwlwifi<br>然后重新搜索wifi就可以连接上路由器了。</p>
</blockquote>

      
    </div>
    <footer class="article-footer">
      
        <a data-url="https://gitee.com/superigbt_superigbt/superigbt_superigbt/2020/10/02/ubuntu-reload-wifi/" data-id="cl7zulc940071eiq5cfvp3iyy" class="article-share-link" data-share="baidu" data-title="ubuntu19.04后，待机后wifi失联，如何找回？">分享到</a>
      

      

      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/ubuntu-reWifi/" rel="tag">ubuntu-reWifi</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-caddy-v2" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/10/01/caddy-v2/" class="article-date">
  <time datetime="2020-10-01T04:38:00.000Z" itemprop="datePublished">2020-10-01</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/caddy/">caddy</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/10/01/caddy-v2/">caddy己升级为2.X版</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="安装了termux0-99版后，安装caddy，发现己经升级为2-X版了，啊啊啊-，原来配置出错，解析不了index-html"><a href="#安装了termux0-99版后，安装caddy，发现己经升级为2-X版了，啊啊啊-，原来配置出错，解析不了index-html" class="headerlink" title="安装了termux0.99版后，安装caddy，发现己经升级为2.X版了，啊啊啊~~~，原来配置出错，解析不了index.html"></a>安装了termux0.99版后，安装caddy，发现己经升级为2.X版了，啊啊啊~~~，原来配置出错，解析不了index.html</h2><ol>
<li>http://:8080  如果木有http，就得先做https认证，不然运行会出错。</li>
<li>gzip 改变为 encode zstd gzip</li>
<li>root * /data/data/com.termux/files/home/mywww  必须写全，用~/mywww会出错。</li>
<li>file_server  必须要，不然解析不了index.html </li>
<li>执行命令行，不是caddy了事了。而是<br> caddy run  运行，如果要中断，则ctl+C<br> caddy start 后台运行，如果要中断，则 caddy stop</li>
</ol>
<h3 id="在ubtuntu下-caddy-v2-新的安装方法是"><a href="#在ubtuntu下-caddy-v2-新的安装方法是" class="headerlink" title="在ubtuntu下 caddy v2 新的安装方法是"></a>在ubtuntu下 caddy v2 新的安装方法是</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">$ <span class="built_in">echo</span> <span class="string">&quot;deb [trusted=yes] https://apt.fury.io/caddy/ /&quot;</span> \</span><br><span class="line">    | sudo tee -a /etc/apt/sources.list.d/caddy-fury.list</span><br><span class="line">$ sudo apt update</span><br><span class="line">$ sudo apt install caddy</span><br></pre></td></tr></table></figure>
      
    </div>
    <footer class="article-footer">
      
        <a data-url="https://gitee.com/superigbt_superigbt/superigbt_superigbt/2020/10/01/caddy-v2/" data-id="cl7zulc5y000oeiq541d5huso" class="article-share-link" data-share="baidu" data-title="caddy己升级为2.X版">分享到</a>
      

      

      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/caddyV2/" rel="tag">caddyV2</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%BB%BA%E7%AB%99/" rel="tag">建站</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-termux-install-wcode" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/09/28/termux-install-wcode/" class="article-date">
  <time datetime="2020-09-28T13:30:00.000Z" itemprop="datePublished">2020-09-28</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/termux/">termux</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/09/28/termux-install-wcode/">WCODE神器！----给termux增加vscode功能</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h3 id="前面讲过给Anlinux安装vscode程序或code-server来实现vscode功能，那么不用进入linux，是否能在termux下直接使用呢？"><a href="#前面讲过给Anlinux安装vscode程序或code-server来实现vscode功能，那么不用进入linux，是否能在termux下直接使用呢？" class="headerlink" title="前面讲过给Anlinux安装vscode程序或code-server来实现vscode功能，那么不用进入linux，是否能在termux下直接使用呢？"></a>前面讲过给Anlinux安装vscode程序或code-server来实现vscode功能，那么不用进入linux，是否能在termux下直接使用呢？</h3><ol>
<li>尝试把code-server在termux下直接执行，由于缺少依赖，失败了。</li>
<li>万能的github有人写了一个wcode软件，可实现类似code-server的功能。安装和使用如下，比如采用hexo写个人博客，需要用wcode来编辑<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ npm install -g wcode</span><br><span class="line">$ wcode -p 8090 myblog/<span class="built_in">source</span>/</span><br></pre></td></tr></table></figure>

在浏览器输入 192.168.x.x:8090，就进入你的 myblog/source/目录了，可浏览些目录下的markdown文档了。</li>
</ol>
<h3 id="2021年6月，无意中在-termux下执行"><a href="#2021年6月，无意中在-termux下执行" class="headerlink" title="2021年6月，无意中在 termux下执行"></a>2021年6月，无意中在 termux下执行</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ npm install -g code-server</span><br></pre></td></tr></table></figure>

<p>竟然给安装成功了。然后：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">$ code-server  <span class="comment"># 运行成功后，再退出。</span></span><br><span class="line">$ <span class="built_in">cd</span> ~/.config/code-server</span><br><span class="line">$ vim config.yaml <span class="comment"># 更改端口与密码</span></span><br></pre></td></tr></table></figure>

<p>wcode己经不更新了，作都也建议移步到code-server了，现在termux也能用code-server了，非常好。</p>

      
    </div>
    <footer class="article-footer">
      
        <a data-url="https://gitee.com/superigbt_superigbt/superigbt_superigbt/2020/09/28/termux-install-wcode/" data-id="cl7zulc8b0058eiq5hpc6h608" class="article-share-link" data-share="baidu" data-title="WCODE神器！----给termux增加vscode功能">分享到</a>
      

      

      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/termux/" rel="tag">termux</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/wcode/" rel="tag">wcode</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E7%BC%96%E8%BE%91%E5%99%A8/" rel="tag">编辑器</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-ubuntu-freerdp-win7" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/09/28/ubuntu-freerdp-win7/" class="article-date">
  <time datetime="2020-09-28T08:30:00.000Z" itemprop="datePublished">2020-09-28</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/ubuntu%E7%BB%8F%E9%AA%8C/">ubuntu经验</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/09/28/ubuntu-freerdp-win7/">ubuntu利用远程桌面连接win7</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="利用远程桌面工具连接win7"><a href="#利用远程桌面工具连接win7" class="headerlink" title="利用远程桌面工具连接win7"></a>利用远程桌面工具连接win7</h2><h3 id="win7的设置"><a href="#win7的设置" class="headerlink" title="win7的设置"></a>win7的设置</h3><ol>
<li><p>开始菜单 &gt; 右键点击“我的电脑” &gt; 属性 &gt; 远程</p>
</li>
<li><p>选择-&gt;”允许远程协助连接这台计算机(R)</p>
</li>
<li><p>选择-&gt;允许运行任意版本远程桌面的计算机连接</p>
<blockquote>
<p>第3步如果选“仅允许运行使用网络级别身份验证的远程桌面的计算机连接（更安全）”,验证失败</p>
</blockquote>
</li>
</ol>
<h3 id="ubuntu端"><a href="#ubuntu端" class="headerlink" title="ubuntu端"></a>ubuntu端</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">$ sudo apt install freerdp2</span><br><span class="line">$ sudo apt install freerdp2-x11</span><br><span class="line">$ sudo xfreerdp /v 192.168.1.123:3389 /u:frank /sec:tls</span><br></pre></td></tr></table></figure>

<h3 id="本次验证说明"><a href="#本次验证说明" class="headerlink" title="本次验证说明"></a>本次验证说明</h3><h4 id="本次验证主机为ubuntu20-04，win7为Vbox下的虚拟机，网卡NAT，并做端口转发"><a href="#本次验证主机为ubuntu20-04，win7为Vbox下的虚拟机，网卡NAT，并做端口转发" class="headerlink" title="本次验证主机为ubuntu20.04，win7为Vbox下的虚拟机，网卡NAT，并做端口转发"></a>本次验证主机为ubuntu20.04，win7为Vbox下的虚拟机，网卡NAT，并做端口转发</h4><h4 id="windows端有个工具-RemoteApp-Tool-据说可以把提定的程序共享，并融合到客户机，看起来不象是远程一样，但是在linux客户端实验没有成功"><a href="#windows端有个工具-RemoteApp-Tool-据说可以把提定的程序共享，并融合到客户机，看起来不象是远程一样，但是在linux客户端实验没有成功" class="headerlink" title="windows端有个工具 RemoteApp Tool ,据说可以把提定的程序共享，并融合到客户机，看起来不象是远程一样，但是在linux客户端实验没有成功"></a>windows端有个工具 RemoteApp Tool ,据说可以把提定的程序共享，并融合到客户机，看起来不象是远程一样，但是在linux客户端实验没有成功</h4>
      
    </div>
    <footer class="article-footer">
      
        <a data-url="https://gitee.com/superigbt_superigbt/superigbt_superigbt/2020/09/28/ubuntu-freerdp-win7/" data-id="cl7zulc8w006jeiq5310y6rg9" class="article-share-link" data-share="baidu" data-title="ubuntu利用远程桌面连接win7">分享到</a>
      

      

      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/ubuntu%E7%BB%8F%E9%AA%8C/" rel="tag">ubuntu经验</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E8%BF%9C%E7%A8%8B%E6%A1%8C%E9%9D%A2/" rel="tag">远程桌面</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-termux-proot-distro" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/09/28/termux-proot-distro/" class="article-date">
  <time datetime="2020-09-28T02:00:00.000Z" itemprop="datePublished">2020-09-28</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/termux/">termux</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/09/28/termux-proot-distro/">termux利用工作proot-distro安装linux</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h4 id="termux神器新的工具proot-distro，是一个Bash脚本，用于在Termux中管理与安装proot下Linux发行版。"><a href="#termux神器新的工具proot-distro，是一个Bash脚本，用于在Termux中管理与安装proot下Linux发行版。" class="headerlink" title="termux神器新的工具proot-distro，是一个Bash脚本，用于在Termux中管理与安装proot下Linux发行版。"></a>termux神器新的工具proot-distro，是一个Bash脚本，用于在Termux中管理与安装proot下Linux发行版。</h4><h5 id="目前，它支持安装以下发行版："><a href="#目前，它支持安装以下发行版：" class="headerlink" title="目前，它支持安装以下发行版："></a>目前，它支持安装以下发行版：</h5><ol>
<li>Alpine Linux</li>
<li>Arch Linux</li>
<li>Kali Nethunter (rootless)</li>
<li>Ubuntu (18.04 / 20.04)<h5 id="一-安装如下："><a href="#一-安装如下：" class="headerlink" title="一. 安装如下："></a>一. 安装如下：</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ pkg install proot-distro</span><br></pre></td></tr></table></figure>
<h5 id="二-然后利和其安装与运行ubuntu的例子如下："><a href="#二-然后利和其安装与运行ubuntu的例子如下：" class="headerlink" title="二. 然后利和其安装与运行ubuntu的例子如下："></a>二. 然后利和其安装与运行ubuntu的例子如下：</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">proot-distro install ubuntu-20.04  <span class="comment"># 安装ubuntu20.04或ubuntu-18.04</span></span><br><span class="line">proot-distro login ubuntu-20.04   <span class="comment"># 运行ubnuntu</span></span><br></pre></td></tr></table></figure></li>
</ol>
<h6 id="本人新测安装动行ubtuntu-net-tools-vim己安装，-storage目录下是外置sdcard的文件，-sdcard下的目录是内置存储器的文件。"><a href="#本人新测安装动行ubtuntu-net-tools-vim己安装，-storage目录下是外置sdcard的文件，-sdcard下的目录是内置存储器的文件。" class="headerlink" title="本人新测安装动行ubtuntu, net-tools vim己安装，/storage目录下是外置sdcard的文件，/sdcard下的目录是内置存储器的文件。"></a>本人新测安装动行ubtuntu, net-tools vim己安装，/storage目录下是外置sdcard的文件，/sdcard下的目录是内置存储器的文件。</h6><h6 id="安装位置在-data-data-com-termux-files-usr-var-lib-proot-distro"><a href="#安装位置在-data-data-com-termux-files-usr-var-lib-proot-distro" class="headerlink" title="安装位置在 /data/data/com.termux/files/usr/var/lib/proot-distro"></a>安装位置在 /data/data/com.termux/files/usr/var/lib/proot-distro</h6><h5 id="三-进入本ubuntu20-04后，安装软件报错，比如上面的xfe，出错信怎如下："><a href="#三-进入本ubuntu20-04后，安装软件报错，比如上面的xfe，出错信怎如下：" class="headerlink" title="三. 进入本ubuntu20.04后，安装软件报错，比如上面的xfe，出错信怎如下："></a>三. 进入本ubuntu20.04后，安装软件报错，比如上面的xfe，出错信怎如下：</h5><pre><code>dpkg: error processing package xxx (--configure)
</code></pre>
<p>并且也无法升级 apt update出错。<br>    如何解决呢？</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/</span><br><span class="line">mkdir /var/lib/dpkg/info/</span><br><span class="line">apt-get update</span><br><span class="line">apt-get -f install</span><br><span class="line">cp /var/lib/dpkg/info_old/* /var/lib/dpkg/info/</span><br><span class="line">rm -rf /var/lib/dpkg/info_old</span><br></pre></td></tr></table></figure>
<p>然后就能正常安装了。<br><del>以上在升级为termux0.99版后，不会出错，所以不用以上(第三)步骤了。</del></p>
<h3 id="最好先建立sudo客户，并以sudo客户登录后，再执行以下步骤"><a href="#最好先建立sudo客户，并以sudo客户登录后，再执行以下步骤" class="headerlink" title="最好先建立sudo客户，并以sudo客户登录后，再执行以下步骤"></a>最好先建立sudo客户，并以sudo客户登录后，再执行以下步骤</h3><h5 id="四-中文语言设置"><a href="#四-中文语言设置" class="headerlink" title="四.中文语言设置"></a>四.中文语言设置</h5> <figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">$ apt install language-pack-zh-hans* 安装中文包</span><br><span class="line">$ apt install language-pack-gnome-zh-hans* 安装中文包</span><br><span class="line">$ apt install fonts-wqy-*</span><br><span class="line">    <span class="comment"># $ apt install fonts-wqy-microhei 安装中文字体</span></span><br><span class="line">    <span class="comment"># $ apt install fronts-wqy-zenhei 另一个中文字体</span></span><br><span class="line">$ vim /etc/default/locale</span><br></pre></td></tr></table></figure>
<blockquote>
<p>更改内容如下：<br>LANG=”zh_CN.UTF-8”<br>LANGUAGE=”zh_CN:en_US:en”<br>LC_NUMERIC=”zh_CN.UTF-8”<br>LC_TIME=”zh_CN.UTF-8”<br>LC_MONETARY=”zh_CN.UTF-8”<br>LC_PAPER=”zh_CN.UTF-8”<br>LC_IDENTIFICATION=”zh_CN.UTF-8”<br>LC_NAME=”zh_CN.UTF-8”<br>LC_ADDRESS=”zh_CN.UTF-8”<br>LC_TELEPHONE=”zh_CN.UTF-8”<br>LC_MEASUREMENT=”zh_CN.UTF-8”</p>
</blockquote>
<p>保存后执行</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ fc-cache -fv  <span class="comment">#最好进行这一步后再安装fcitx，否则有可能输入法不起做用。</span></span><br></pre></td></tr></table></figure>
<p>则控制台终端己经会出现中文了</p>
<h5 id="五-然后可安装xfce4桌面"><a href="#五-然后可安装xfce4桌面" class="headerlink" title="五. 然后可安装xfce4桌面"></a>五. 然后可安装xfce4桌面</h5><p>==记得更改阿里源再安装，不然真的是时间太长了。==</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">$ apt install dbus</span><br><span class="line">$ apt install python3</span><br><span class="line">$ apt install xfce4 xfce4-terminal  <span class="comment"># 真是花了好长时间</span></span><br><span class="line">$ apt install tightvncserver <span class="comment"># vncserver软件</span></span><br><span class="line">$ apt install xfe  <span class="comment"># 一个优秀的文件管理器，带文件查找功能</span></span><br><span class="line">$ <span class="built_in">export</span> DISPLAY=127.0.0.1:0</span><br><span class="line">$ <span class="built_in">export</span> PULSE_SERVER=tcp:127.0.0.1:4713</span><br><span class="line">打开xdsl的APP，然后回到termux下的linux</span><br><span class="line">$ startxfce4</span><br></pre></td></tr></table></figure>
<h5 id="六-安装过程中发现一些缺失的东东"><a href="#六-安装过程中发现一些缺失的东东" class="headerlink" title="六. 安装过程中发现一些缺失的东东"></a>六. 安装过程中发现一些缺失的东东</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ apt install dialog</span><br><span class="line">$ apt install apt-utils</span><br></pre></td></tr></table></figure>
<h5 id="七-关于中文输入法"><a href="#七-关于中文输入法" class="headerlink" title="七. 关于中文输入法"></a>七. 关于中文输入法</h5><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">$ apt install fcitx</span><br><span class="line">$ apt install fcitx-config-*</span><br><span class="line">$ apt install fcitx-table-wbpy <span class="comment"># 五笔拼音</span></span><br></pre></td></tr></table></figure>
<p>*** 然面通过VNC或别的XDSL进入XFCE，有fcitx图标，也能看到拼音，五笔输入法，但是却输入不了中文 ***<br>vim ~/.profile，在结尾加入</p>
<blockquote>
<p>#fcitx<br>export GTK_IM_MODULE=fcitx<br>export QT_IM_MODULE=fcitx<br>export XMODIFIERS=”@im=fcitx”<br>然后退出图形界面后，重启动。中文输入法可用了。</p>
</blockquote>
<h6 id="如果要一进入桌面就有fcitx，则可"><a href="#如果要一进入桌面就有fcitx，则可" class="headerlink" title="如果要一进入桌面就有fcitx，则可"></a>如果要一进入桌面就有fcitx，则可</h6><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ cp /usr/share/applications/fcitx.desktop /etc/xdg/autostart/</span><br></pre></td></tr></table></figure>
<p><strong>采用VNC时，五笔可以用，可是采用xdsl却无法切换中文输入。后来发现是xdsl把Ctrl/Alt/Shift三个键占用了。进系统把中文输入法切换键换为F12可解决</strong></p>
<h6 id="进入桌面后，浏览器浏览国内网站好慢，一直不知道神马原因，开始还以为是手机CPU太差了，后来无意中想到可能是DNS的问题"><a href="#进入桌面后，浏览器浏览国内网站好慢，一直不知道神马原因，开始还以为是手机CPU太差了，后来无意中想到可能是DNS的问题" class="headerlink" title="进入桌面后，浏览器浏览国内网站好慢，一直不知道神马原因，开始还以为是手机CPU太差了，后来无意中想到可能是DNS的问题"></a>进入桌面后，浏览器浏览国内网站好慢，一直不知道神马原因，开始还以为是手机CPU太差了，后来无意中想到可能是DNS的问题</h6><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ vim /etc/resolv.conf </span><br><span class="line">增加一行 nameserver=114.114.114.114</span><br></pre></td></tr></table></figure>

<h4 id="Arm64-版的ubuntu-镜像下载地址"><a href="#Arm64-版的ubuntu-镜像下载地址" class="headerlink" title="Arm64 版的ubuntu 镜像下载地址"></a>Arm64 版的ubuntu 镜像下载地址</h4><p><a target="_blank" rel="noopener" href="https://partner-images.canonical.com/core/">https://partner-images.canonical.com/core/</a><br>注意这个地址是有许多版本的linux的，比如ubuntu20.10没有，可是我们想装咋办呢？因为proot-distro当前是装不了的。</p>
<ol>
<li>先下载 ubuntu20.10的镜像，<a target="_blank" rel="noopener" href="https://partner-images.canonical.com/core/groovy/current/ubuntu-groovy-core-cloudimg-arm64-root.tar.gz">https://partner-images.canonical.com/core/groovy/current/ubuntu-groovy-core-cloudimg-arm64-root.tar.gz</a></li>
<li>进入termux的 /data/data/com.termux/files/usr/etc/proot-distro目录。</li>
<li>cp ubuntu-20.04.sh ubuntu-20.10.sh</li>
<li>vim ubuntu-20.10.sh，把对应的 bonic改为groovy就行了。</li>
<li>执行 proot-distro install ubuntu-20.10来安装</li>
<li>ubuntu-20.10.sh的内容如下：<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">##</span></span><br><span class="line"><span class="comment">## Plug-in for installing Ubuntu groovy.</span></span><br><span class="line"><span class="comment">##</span></span><br><span class="line"></span><br><span class="line">DISTRO_NAME=<span class="string">&quot;Ubuntu 20.10&quot;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># Returns download URL.</span></span><br><span class="line"><span class="function"><span class="title">get_download_url</span></span>() &#123;</span><br><span class="line">	<span class="keyword">case</span> <span class="string">&quot;<span class="subst">$(uname -m)</span>&quot;</span> <span class="keyword">in</span></span><br><span class="line">		aarch64)</span><br><span class="line">			<span class="built_in">echo</span> <span class="string">&quot;https://partner-images.canonical.com/core/groovy/current/ubuntu-groovy-core-cloudimg-arm64-root.tar.gz&quot;</span></span><br><span class="line">			;;</span><br><span class="line">		armv7l|armv8l)</span><br><span class="line">			<span class="built_in">echo</span> <span class="string">&quot;https://partner-images.canonical.com/core/groovy/current/ubuntu-groovy-core-cloudimg-armhf-root.tar.gz&quot;</span></span><br><span class="line">			;;</span><br><span class="line">		i686)</span><br><span class="line">			<span class="comment"># Ubuntu groovy does not provide tarballs for x86 32bit.</span></span><br><span class="line">			;;</span><br><span class="line">		x86_64)</span><br><span class="line">			<span class="built_in">echo</span> <span class="string">&quot;https://partner-images.canonical.com/core/groovy/current/ubuntu-groovy-core-cloudimg-amd64-root.tar.gz&quot;</span></span><br><span class="line">			;;</span><br><span class="line">	<span class="keyword">esac</span></span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="comment"># Define here additional steps which should be executed</span></span><br><span class="line"><span class="comment"># for configuration.</span></span><br><span class="line"><span class="function"><span class="title">distro_setup</span></span>() &#123;</span><br><span class="line">	<span class="comment"># Hint: $PWD is the distribution rootfs directory.</span></span><br><span class="line">	<span class="comment">#echo &quot;hello world&quot; &gt; ./etc/motd</span></span><br><span class="line"></span><br><span class="line">	<span class="comment"># Run command within proot&#x27;ed environment with</span></span><br><span class="line">	<span class="comment"># run_proot_cmd function.</span></span><br><span class="line">	<span class="comment"># Uncomment this to do system upgrade during installation.</span></span><br><span class="line">	<span class="comment">#run_proot_cmd apt update</span></span><br><span class="line">	<span class="comment">#run_proot_cmd apt upgrade -yq</span></span><br><span class="line">	:</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
</ol>

      
    </div>
    <footer class="article-footer">
      
        <a data-url="https://gitee.com/superigbt_superigbt/superigbt_superigbt/2020/09/28/termux-proot-distro/" data-id="cl7zulc8g005feiq5b0logs3u" class="article-share-link" data-share="baidu" data-title="termux利用工作proot-distro安装linux">分享到</a>
      

      

      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Anlinux/" rel="tag">Anlinux</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/termux-proot-distro/" rel="tag">termux-proot-distro</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85/" rel="tag">系统安装</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-termux-anlinux-sourcelist" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/09/27/termux-anlinux-sourcelist/" class="article-date">
  <time datetime="2020-09-27T06:11:00.000Z" itemprop="datePublished">2020-09-27</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/termux/">termux</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/09/27/termux-anlinux-sourcelist/">termux 与 Anlinux换源</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h4 id="一-termux换源"><a href="#一-termux换源" class="headerlink" title="一. termux换源"></a>一. termux换源</h4><p>新版termux采用</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ termux-change-repo</span><br></pre></td></tr></table></figure>

<p>老版本termux采用</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">$ termux-change-repo</span><br><span class="line">$ termux-chroot</span><br><span class="line">$ vim /etc/apt/sources.list</span><br></pre></td></tr></table></figure>

<blockquote>
<p>deb <a target="_blank" rel="noopener" href="https://termux.org/packages/">https://termux.org/packages/</a> stable main<br>改为:</p>
<h2 id="deb-https-termux-org-packages-stable-main"><a href="#deb-https-termux-org-packages-stable-main" class="headerlink" title="deb https://termux.org/packages/ stable main"></a>deb <a target="_blank" rel="noopener" href="https://termux.org/packages/">https://termux.org/packages/</a> stable main</h2><p>deb [arch=all,aarch64] <a target="_blank" rel="noopener" href="https://mirrors.tuna.tsinghua.edu.cn/termux">https://mirrors.tuna.tsinghua.edu.cn/termux</a> stable main</p>
</blockquote>
<h4 id="二-termu下的ubutnu换源，可是arm64版的linux哦"><a href="#二-termu下的ubutnu换源，可是arm64版的linux哦" class="headerlink" title="二. termu下的ubutnu换源，可是arm64版的linux哦"></a>二. termu下的ubutnu换源，可是arm64版的linux哦</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ ./start-ubuntu.sh</span><br><span class="line">root@localhost:~<span class="comment"># vim /etc/apt/sources.list</span></span><br></pre></td></tr></table></figure>

<blockquote>
<p>deb <a target="_blank" rel="noopener" href="http://ports.ubuntu.com/ubuntu-ports">http://ports.ubuntu.com/ubuntu-ports</a> bionic main restricted universe multiverse<br>deb-src <a target="_blank" rel="noopener" href="http://ports.ubuntu.com/ubuntu-ports">http://ports.ubuntu.com/ubuntu-ports</a> bionic main restricted universe multiverse<br>改为：</p>
<h2 id="deb-http-ports-ubuntu-com-ubuntu-ports-bionic-main-restricted-universe-multiverse"><a href="#deb-http-ports-ubuntu-com-ubuntu-ports-bionic-main-restricted-universe-multiverse" class="headerlink" title="deb http://ports.ubuntu.com/ubuntu-ports bionic main restricted universe multiverse"></a>deb <a target="_blank" rel="noopener" href="http://ports.ubuntu.com/ubuntu-ports">http://ports.ubuntu.com/ubuntu-ports</a> bionic main restricted universe multiverse</h2><h2 id="deb-src-http-ports-ubuntu-com-ubuntu-ports-bionic-main-restricted-universe-multiverse"><a href="#deb-src-http-ports-ubuntu-com-ubuntu-ports-bionic-main-restricted-universe-multiverse" class="headerlink" title="deb-src http://ports.ubuntu.com/ubuntu-ports bionic main restricted universe multiverse"></a>deb-src <a target="_blank" rel="noopener" href="http://ports.ubuntu.com/ubuntu-ports">http://ports.ubuntu.com/ubuntu-ports</a> bionic main restricted universe multiverse</h2><h1 id="阿里源"><a href="#阿里源" class="headerlink" title="阿里源"></a>阿里源</h1><p>deb <a target="_blank" rel="noopener" href="http://mirrors.aliyun.com/ubuntu-ports">http://mirrors.aliyun.com/ubuntu-ports</a> bionic main restricted universe multiverse<br>deb-src <a target="_blank" rel="noopener" href="http://mirrors.aliyun.com/ubuntu-ports">http://mirrors.aliyun.com/ubuntu-ports</a> bionic main restricted universe multiverse</p>
<h1 id="科大源"><a href="#科大源" class="headerlink" title="科大源"></a>科大源</h1><p>deb <a target="_blank" rel="noopener" href="http://mirrors.ustc.edu.cn/ubuntu-ports">http://mirrors.ustc.edu.cn/ubuntu-ports</a> bionic main restricted universe multiverse<br>deb-src <a target="_blank" rel="noopener" href="http://mirrors.ustc.edu.cn/ubuntu-ports">http://mirrors.ustc.edu.cn/ubuntu-ports</a> bionic main restricted universe multiverse</p>
</blockquote>

      
    </div>
    <footer class="article-footer">
      
        <a data-url="https://gitee.com/superigbt_superigbt/superigbt_superigbt/2020/09/27/termux-anlinux-sourcelist/" data-id="cl7zulc7v0048eiq5c5ay0ck8" class="article-share-link" data-share="baidu" data-title="termux 与 Anlinux换源">分享到</a>
      

      

      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%8D%A2%E6%BA%90/" rel="tag">换源</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-termux-anlinux-ssh-server" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/09/24/termux-anlinux-ssh-server/" class="article-date">
  <time datetime="2020-09-24T13:00:00.000Z" itemprop="datePublished">2020-09-24</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/termux/">termux</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/09/24/termux-anlinux-ssh-server/">termux中anlinux的ssh server安装与启动</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h1 id="termux中anlinux的ssh-server安装与启动"><a href="#termux中anlinux的ssh-server安装与启动" class="headerlink" title="termux中anlinux的ssh server安装与启动"></a>termux中anlinux的ssh server安装与启动</h1><ol>
<li>apt install openssh-server</li>
<li>如果这时候启动ssh后，显示OK，可是查看状态，显示SSH服务并没有运行。开始以为与termux的ssh有冲突，今天网上baidu并学习了一下。成功步骤如下。**<br>3.vim /etc/ssh/sshd_config文件。<blockquote>
<ol>
<li>把Port 22改为 9022，注意不能是22，也不能是8022</li>
<li>把PermitRootLogin那一行，注释去掉，改为PermiRootLogin yes</li>
<li>保存退出。</li>
</ol>
</blockquote>
</li>
<li>/etc/init.d/ssh start 启动<blockquote>
<h3 id="在proot-distro安装ubuntu18-04上，找到的是-etc-init-d-ssh-采用的是-service-ssh-start-启动成功"><a href="#在proot-distro安装ubuntu18-04上，找到的是-etc-init-d-ssh-采用的是-service-ssh-start-启动成功" class="headerlink" title="在proot-distro安装ubuntu18.04上，找到的是/etc/init.d/ssh 采用的是 service ssh start 启动成功"></a>在proot-distro安装ubuntu18.04上，找到的是/etc/init.d/ssh 采用的是 service ssh start 启动成功</h3></blockquote>
</li>
<li>/etc/init.d/ssh status查看状态，己经运行。</li>
<li>在pc上执行 ssh -p 9022 <a href="mailto:&#114;&#x6f;&#111;&#116;&#x40;&#x31;&#x39;&#x32;&#46;&#x31;&#x36;&#x38;">&#114;&#x6f;&#111;&#116;&#x40;&#x31;&#x39;&#x32;&#46;&#x31;&#x36;&#x38;</a>.你的IP地址，成功</li>
</ol>

      
    </div>
    <footer class="article-footer">
      
        <a data-url="https://gitee.com/superigbt_superigbt/superigbt_superigbt/2020/09/24/termux-anlinux-ssh-server/" data-id="cl7zulc7x004aeiq51fnf2qke" class="article-share-link" data-share="baidu" data-title="termux中anlinux的ssh server安装与启动">分享到</a>
      

      

      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Anlinux/" rel="tag">Anlinux</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/ssh/" rel="tag">ssh</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/termux/" rel="tag">termux</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-termux-linux-VNC" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/09/13/termux-linux-VNC/" class="article-date">
  <time datetime="2020-09-13T15:00:00.000Z" itemprop="datePublished">2020-09-13</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/termux/">termux</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/09/13/termux-linux-VNC/">termux下linux安装vnc</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="termux下的linux如果想运行图行界面的话，一种是本机运行XDSL，然而如果屏小又木有外部显示器时，利用VNC是个好办法。"><a href="#termux下的linux如果想运行图行界面的话，一种是本机运行XDSL，然而如果屏小又木有外部显示器时，利用VNC是个好办法。" class="headerlink" title="termux下的linux如果想运行图行界面的话，一种是本机运行XDSL，然而如果屏小又木有外部显示器时，利用VNC是个好办法。"></a>termux下的linux如果想运行图行界面的话，一种是本机运行XDSL，然而如果屏小又木有外部显示器时，利用VNC是个好办法。</h2><h4 id="一-安装VNC，以xfce4为利"><a href="#一-安装VNC，以xfce4为利" class="headerlink" title="一 安装VNC，以xfce4为利"></a>一 安装VNC，以xfce4为利</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">$ apt-get update</span><br><span class="line">$ apt-get install xfce4 xfce4-terminal -y  <span class="comment"># 顺便安装下xfce4</span></span><br><span class="line">$ apt-get install tightvncserver -y </span><br><span class="line">$ apt-get install xfe -y  <span class="comment"># 一个优秀的文件管理器，带搜索文件功能</span></span><br><span class="line">$ apt-get clean</span><br></pre></td></tr></table></figure>

<h4 id="二-创建一些文件"><a href="#二-创建一些文件" class="headerlink" title="二 创建一些文件"></a>二 创建一些文件</h4><ol>
<li><p>vim /etc/profile 在文件结尾加上<br>export DISPLAY=:1</p>
</li>
<li><p>~/.vnc/xstartup 文件</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">$ <span class="built_in">cd</span> ~</span><br><span class="line">$ mkdir .vnc</span><br><span class="line">$ <span class="built_in">cd</span> vnc</span><br><span class="line">$ vim xstartup</span><br></pre></td></tr></table></figure>

<blockquote>
<p>#!/bin/bash<br>xrdb $HOME/.Xresources  # 注意大小写，目录名是没有空格的哦！！！<br>startxfce4 &amp;</p>
</blockquote>
</li>
<li><p>vim ~/vncstart.sh</p>
</li>
</ol>
<blockquote>
<p>export USER=root<br>export HOME=/root</p>
<p>vncserver -geometry 1024x768 -depth 24 -name remote-desktop :1</p>
</blockquote>
<ol start="4">
<li>vim ~/vncstop.sh<blockquote>
<p>export USER=root<br>export HOME=/root</p>
<p>vncserver -kill :1<br>rm -rf /tmp/.X1-lock<br>rm -rf /tmp/.X11-unix/X1 # 注意大小写，目录名是没有空格的哦！！！</p>
</blockquote>
</li>
</ol>
<h4 id="三-启动VNC，进入图形桌面"><a href="#三-启动VNC，进入图形桌面" class="headerlink" title="三 启动VNC，进入图形桌面"></a>三 启动VNC，进入图形桌面</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ bash vncstart.sh</span><br></pre></td></tr></table></figure>

<p>然后在别一个装有vncview的计算机上连接 “手机的ip地址：5901”</p>
<h4 id="四-退出VNC，退出图形桌面"><a href="#四-退出VNC，退出图形桌面" class="headerlink" title="四 退出VNC，退出图形桌面"></a>四 退出VNC，退出图形桌面</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ bash vncstop.sh</span><br><span class="line">$ <span class="built_in">exit</span></span><br></pre></td></tr></table></figure>
      
    </div>
    <footer class="article-footer">
      
        <a data-url="https://gitee.com/superigbt_superigbt/superigbt_superigbt/2020/09/13/termux-linux-VNC/" data-id="cl7zulc8e005beiq5dbra6fdd" class="article-share-link" data-share="baidu" data-title="termux下linux安装vnc">分享到</a>
      

      

      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Anlinux/" rel="tag">Anlinux</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/termux/" rel="tag">termux</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-vbox-modyfy-vid" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2020/09/10/vbox-modyfy-vid/" class="article-date">
  <time datetime="2020-09-10T14:50:00.000Z" itemprop="datePublished">2020-09-10</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/VirtualBox/">VirtualBox</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2020/09/10/vbox-modyfy-vid/">VirtualBox更改虚拟硬盘------VDI文件空间大小的方法</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h4 id="一-主机是windows系统"><a href="#一-主机是windows系统" class="headerlink" title="一 主机是windows系统"></a>一 主机是windows系统</h4><ol>
<li>运行：cmd<br>2 C:&gt;cd  “\Program Files\Oracle\VirtualBox”<br>3 C:\Program Files\Oracle\VirtualBox&gt;VBoxManage.exe modifyhd YOUR_HARD_DISK.vdi –resize SIZE_IN_MB<br>4 C:\Program Files\Oracle\VirtualBox&gt;<br>其中参数 YOUR_HARD_DISK.vdi 是您要修改的 VirtualBox 虚拟硬盘镜像文件。而参数 SIZE_IN_MB 是指修改后的硬盘容量，单位是MB。 <h6 id="例如-调整磁盘空间为15G："><a href="#例如-调整磁盘空间为15G：" class="headerlink" title="例如 调整磁盘空间为15G："></a>例如 调整磁盘空间为15G：</h6>比如下面这行命令将会把名为”ubuntu.vdi “的 VirtualBox 硬盘容量修改为15*1024MB。<br>C:\Program Files\Oracle\VirtualBox&gt;VBoxManage.exe modifyhd “E:\dds\VirtualBox VMs\linux\linux-bak.vdi” –resize 15360</li>
</ol>
<h4 id="二-主机是-Linux系统"><a href="#二-主机是-Linux系统" class="headerlink" title="二 主机是 Linux系统"></a>二 主机是 Linux系统</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ <span class="built_in">cd</span> ~/VirtualBox VMs/win7</span><br><span class="line">$  VBoxManage modifyhd <span class="string">&quot;win7.vdi&quot;</span> --resize 15360模拟器/虚拟机</span><br></pre></td></tr></table></figure>
      
    </div>
    <footer class="article-footer">
      
        <a data-url="https://gitee.com/superigbt_superigbt/superigbt_superigbt/2020/09/10/vbox-modyfy-vid/" data-id="cl8zccx8d000gqkq5e6sgdq2a" class="article-share-link" data-share="baidu" data-title="VirtualBox更改虚拟硬盘------VDI文件空间大小的方法">分享到</a>
      

      

      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%A8%A1%E6%8B%9F%E5%99%A8-%E8%99%9A%E6%8B%9F%E6%9C%BA/" rel="tag">模拟器&#x2F;虚拟机</a></li></ul>

    </footer>
  </div>
  
</article>


  


  <nav id="page-nav">
    <a class="extend prev" rel="prev" href="/page/6/">&amp;laquo; 上一页</a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/5/">5</a><a class="page-number" href="/page/6/">6</a><span class="page-number current">7</span><a class="page-number" href="/page/8/">8</a><a class="page-number" href="/page/9/">9</a><a class="page-number" href="/page/10/">10</a><a class="extend next" rel="next" href="/page/8/">下一页 &amp;raquo;</a>
  </nav>
</section>
      
      <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">分类</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/Linux/">Linux</a><span class="category-list-count">5</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/VirtualBox/">VirtualBox</a><span class="category-list-count">5</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/caddy/">caddy</a><span class="category-list-count">4</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/cygwin/">cygwin</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/hexo/">hexo</a><span class="category-list-count">5</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/linux%E6%A1%8C%E9%9D%A2/">linux桌面</a><span class="category-list-count">4</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/mysql/">mysql</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/python%E5%AD%A6%E4%B9%A0/">python学习</a><span class="category-list-count">19</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/termux/">termux</a><span class="category-list-count">20</span><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/termux/caddy/">caddy</a><span class="category-list-count">1</span></li></ul></li><li class="category-list-item"><a class="category-list-link" href="/categories/ubuntu%E7%BB%8F%E9%AA%8C/">ubuntu经验</a><span class="category-list-count">12</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/win10/">win10</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%BB%BA%E7%AB%99/">建站</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%BC%80%E5%85%B3%E7%94%B5%E6%BA%90/">开关电源</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%BF%AB%E6%8D%B7%E9%94%AE/">快捷键</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%89%8B%E6%9C%BA%E7%94%B5%E8%84%91%E4%BA%92%E8%81%94/">手机电脑互联</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%91%98%E6%8A%84%E4%B8%8E%E9%9A%8F%E7%AC%94/">摘抄与随笔</a><span class="category-list-count">10</span></li></ul>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">标签</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/Anlinux/" rel="tag">Anlinux</a><span class="tag-list-count">10</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/LAMP/" rel="tag">LAMP</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Linux/" rel="tag">Linux</a><span class="tag-list-count">4</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Linux%E8%AE%BE%E7%BD%AE/" rel="tag">Linux设置</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/caddy/" rel="tag">caddy</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/caddy-PHP/" rel="tag">caddy+PHP</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/caddy-Vtiger/" rel="tag">caddy+Vtiger</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/caddyV2/" rel="tag">caddyV2</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/code-server/" rel="tag">code-server</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/cygwin/" rel="tag">cygwin</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/flask%E6%A1%86%E6%9E%B6/" rel="tag">flask框架</a><span class="tag-list-count">10</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/fluxbox/" rel="tag">fluxbox</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo/" rel="tag">hexo</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo%E4%B8%BB%E9%A2%98/" rel="tag">hexo主题</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo%E5%AE%89%E8%A3%85/" rel="tag">hexo安装</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo%E9%83%A8%E7%BD%B2/" rel="tag">hexo部署</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/icewm/" rel="tag">icewm</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/lamp-phpmyadmin/" rel="tag">lamp+phpmyadmin</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/linux/" rel="tag">linux</a><span class="tag-list-count">5</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/lumina%E6%A1%8C%E9%9D%A2/" rel="tag">lumina桌面</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/markdown%E8%A1%A8%E6%A0%BC/" rel="tag">markdown表格</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mysql/" rel="tag">mysql</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/nodejs/" rel="tag">nodejs</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/openbox/" rel="tag">openbox</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/pandas%E5%AD%A6%E4%B9%A0/" rel="tag">pandas学习</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/qemu/" rel="tag">qemu</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/sftp/" rel="tag">sftp</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ssh/" rel="tag">ssh</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/streamlit-%E6%A1%86%E6%9E%B6/" rel="tag">streamlit 框架</a><span class="tag-list-count">8</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/termux/" rel="tag">termux</a><span class="tag-list-count">12</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/termux-proot-distro/" rel="tag">termux-proot-distro</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/termux%E6%A1%8C%E9%9D%A2/" rel="tag">termux桌面</a><span class="tag-list-count">3</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ternux/" rel="tag">ternux</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/tmux/" rel="tag">tmux</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ubtunu%E7%89%88%E6%9C%AC/" rel="tag">ubtunu版本</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ubuntu-reWifi/" rel="tag">ubuntu-reWifi</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ubuntu%E4%BF%AE%E6%94%B9DNS/" rel="tag">ubuntu修改DNS</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ubuntu%E7%BB%8F%E9%AA%8C/" rel="tag">ubuntu经验</a><span class="tag-list-count">7</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/vim/" rel="tag">vim</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/vscode/" rel="tag">vscode</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/wcode/" rel="tag">wcode</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/webbrowser-termux/" rel="tag">webbrowser termux</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%8D%9A%E5%AE%A2/" rel="tag">博客</a><span class="tag-list-count">4</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%BB%BA%E7%AB%99/" rel="tag">建站</a><span class="tag-list-count">18</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%BC%80%E5%85%B3%E7%94%B5%E6%BA%90%E5%9F%BA%E7%A1%80/" rel="tag">开关电源基础</a><span class="tag-list-count">3</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%89%8B%E6%9C%BA%E6%8A%95%E5%B1%8F%E8%BD%AF%E4%BB%B6scrcpy/" rel="tag">手机投屏软件scrcpy</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%8D%A2%E6%BA%90/" rel="tag">换源</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%8E%A7%E5%88%B6%E5%8F%B0/" rel="tag">控制台</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%97%85%E6%B8%B8%E6%94%BB%E7%95%A5/" rel="tag">旅游攻略</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/" rel="tag">机器学习</a><span class="tag-list-count">8</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%9E%81%E7%AE%80%E6%A1%8C%E9%9D%A2/" rel="tag">极简桌面</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%A8%A1%E6%8B%9F%E5%99%A8-%E8%99%9A%E6%8B%9F%E6%9C%BA/" rel="tag">模拟器&#x2F;虚拟机</a><span class="tag-list-count">6</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85/" rel="tag">系统安装</a><span class="tag-list-count">5</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E7%BC%96%E8%BE%91%E5%99%A8/" rel="tag">编辑器</a><span class="tag-list-count">5</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E8%99%9A%E6%8B%9F%E6%9C%BA/" rel="tag">虚拟机</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E8%B6%A3%E8%A8%80/" rel="tag">趣言</a><span class="tag-list-count">4</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E8%BF%9C%E7%A8%8B%E6%A1%8C%E9%9D%A2/" rel="tag">远程桌面</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E9%9A%8F%E7%AC%94/" rel="tag">随笔</a><span class="tag-list-count">4</span></li></ul>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">标签云</h3>
    <div class="widget tagcloud">
      <a href="/tags/Anlinux/" style="font-size: 18px;">Anlinux</a> <a href="/tags/LAMP/" style="font-size: 10px;">LAMP</a> <a href="/tags/Linux/" style="font-size: 13px;">Linux</a> <a href="/tags/Linux%E8%AE%BE%E7%BD%AE/" style="font-size: 10px;">Linux设置</a> <a href="/tags/caddy/" style="font-size: 11px;">caddy</a> <a href="/tags/caddy-PHP/" style="font-size: 10px;">caddy+PHP</a> <a href="/tags/caddy-Vtiger/" style="font-size: 10px;">caddy+Vtiger</a> <a href="/tags/caddyV2/" style="font-size: 10px;">caddyV2</a> <a href="/tags/code-server/" style="font-size: 10px;">code-server</a> <a href="/tags/cygwin/" style="font-size: 11px;">cygwin</a> <a href="/tags/flask%E6%A1%86%E6%9E%B6/" style="font-size: 18px;">flask框架</a> <a href="/tags/fluxbox/" style="font-size: 10px;">fluxbox</a> <a href="/tags/hexo/" style="font-size: 10px;">hexo</a> <a href="/tags/hexo%E4%B8%BB%E9%A2%98/" style="font-size: 10px;">hexo主题</a> <a href="/tags/hexo%E5%AE%89%E8%A3%85/" style="font-size: 10px;">hexo安装</a> <a href="/tags/hexo%E9%83%A8%E7%BD%B2/" style="font-size: 11px;">hexo部署</a> <a href="/tags/icewm/" style="font-size: 10px;">icewm</a> <a href="/tags/lamp-phpmyadmin/" style="font-size: 11px;">lamp+phpmyadmin</a> <a href="/tags/linux/" style="font-size: 14px;">linux</a> <a href="/tags/lumina%E6%A1%8C%E9%9D%A2/" style="font-size: 10px;">lumina桌面</a> <a href="/tags/markdown%E8%A1%A8%E6%A0%BC/" style="font-size: 10px;">markdown表格</a> <a href="/tags/mysql/" style="font-size: 11px;">mysql</a> <a href="/tags/nodejs/" style="font-size: 10px;">nodejs</a> <a href="/tags/openbox/" style="font-size: 10px;">openbox</a> <a href="/tags/pandas%E5%AD%A6%E4%B9%A0/" style="font-size: 10px;">pandas学习</a> <a href="/tags/qemu/" style="font-size: 10px;">qemu</a> <a href="/tags/sftp/" style="font-size: 10px;">sftp</a> <a href="/tags/ssh/" style="font-size: 11px;">ssh</a> <a href="/tags/streamlit-%E6%A1%86%E6%9E%B6/" style="font-size: 17px;">streamlit 框架</a> <a href="/tags/termux/" style="font-size: 19px;">termux</a> <a href="/tags/termux-proot-distro/" style="font-size: 10px;">termux-proot-distro</a> <a href="/tags/termux%E6%A1%8C%E9%9D%A2/" style="font-size: 12px;">termux桌面</a> <a href="/tags/ternux/" style="font-size: 10px;">ternux</a> <a href="/tags/tmux/" style="font-size: 10px;">tmux</a> <a href="/tags/ubtunu%E7%89%88%E6%9C%AC/" style="font-size: 10px;">ubtunu版本</a> <a href="/tags/ubuntu-reWifi/" style="font-size: 10px;">ubuntu-reWifi</a> <a href="/tags/ubuntu%E4%BF%AE%E6%94%B9DNS/" style="font-size: 10px;">ubuntu修改DNS</a> <a href="/tags/ubuntu%E7%BB%8F%E9%AA%8C/" style="font-size: 16px;">ubuntu经验</a> <a href="/tags/vim/" style="font-size: 10px;">vim</a> <a href="/tags/vscode/" style="font-size: 11px;">vscode</a> <a href="/tags/wcode/" style="font-size: 10px;">wcode</a> <a href="/tags/webbrowser-termux/" style="font-size: 10px;">webbrowser termux</a> <a href="/tags/%E5%8D%9A%E5%AE%A2/" style="font-size: 13px;">博客</a> <a href="/tags/%E5%BB%BA%E7%AB%99/" style="font-size: 20px;">建站</a> <a href="/tags/%E5%BC%80%E5%85%B3%E7%94%B5%E6%BA%90%E5%9F%BA%E7%A1%80/" style="font-size: 12px;">开关电源基础</a> <a href="/tags/%E6%89%8B%E6%9C%BA%E6%8A%95%E5%B1%8F%E8%BD%AF%E4%BB%B6scrcpy/" style="font-size: 10px;">手机投屏软件scrcpy</a> <a href="/tags/%E6%8D%A2%E6%BA%90/" style="font-size: 11px;">换源</a> <a href="/tags/%E6%8E%A7%E5%88%B6%E5%8F%B0/" style="font-size: 10px;">控制台</a> <a href="/tags/%E6%97%85%E6%B8%B8%E6%94%BB%E7%95%A5/" style="font-size: 11px;">旅游攻略</a> <a href="/tags/%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0/" style="font-size: 17px;">机器学习</a> <a href="/tags/%E6%9E%81%E7%AE%80%E6%A1%8C%E9%9D%A2/" style="font-size: 10px;">极简桌面</a> <a href="/tags/%E6%A8%A1%E6%8B%9F%E5%99%A8-%E8%99%9A%E6%8B%9F%E6%9C%BA/" style="font-size: 15px;">模拟器/虚拟机</a> <a href="/tags/%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85/" style="font-size: 14px;">系统安装</a> <a href="/tags/%E7%BC%96%E8%BE%91%E5%99%A8/" style="font-size: 14px;">编辑器</a> <a href="/tags/%E8%99%9A%E6%8B%9F%E6%9C%BA/" style="font-size: 11px;">虚拟机</a> <a href="/tags/%E8%B6%A3%E8%A8%80/" style="font-size: 13px;">趣言</a> <a href="/tags/%E8%BF%9C%E7%A8%8B%E6%A1%8C%E9%9D%A2/" style="font-size: 11px;">远程桌面</a> <a href="/tags/%E9%9A%8F%E7%AC%94/" style="font-size: 13px;">随笔</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/10/">十月 2022</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/09/">九月 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/06/">六月 2022</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/05/">五月 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/03/">三月 2022</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/02/">二月 2022</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/01/">一月 2022</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/12/">十二月 2021</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/11/">十一月 2021</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/10/">十月 2021</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/09/">九月 2021</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/08/">八月 2021</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/07/">七月 2021</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/06/">六月 2021</a><span class="archive-list-count">10</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/03/">三月 2021</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/02/">二月 2021</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/01/">一月 2021</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/11/">十一月 2020</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/10/">十月 2020</a><span class="archive-list-count">6</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/09/">九月 2020</a><span class="archive-list-count">9</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/08/">八月 2020</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/07/">七月 2020</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/06/">六月 2020</a><span class="archive-list-count">9</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/05/">五月 2020</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/04/">四月 2020</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/03/">三月 2020</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/02/">二月 2020</a><span class="archive-list-count">7</span></li></ul>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">近期文章</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2022/10/08/linux-calibrate-screen-colors/">Ubuntu 屏幕颜色校准</a>
          </li>
        
          <li>
            <a href="/2022/10/07/debootstrap2/">debootstrap学习笔记2</a>
          </li>
        
          <li>
            <a href="/2022/10/06/debootstrap1/">debootstrap学习笔记1</a>
          </li>
        
          <li>
            <a href="/2022/10/06/ubuntu-install-wine/">ubuntu安装Wine</a>
          </li>
        
          <li>
            <a href="/2022/09/13/excerpt6/">摘抄2---中国真心不容易</a>
          </li>
        
      </ul>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">友情链接</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="https://superigbt_superigbt.gitee.io/" target="_blank">My-gitee</a>
          </li>
        
          <li>
            <a href="https://superigbt.github.io/" target="_blank">My-github</a>
          </li>
        
          <li>
            <a href="https://hexo.io/themes/" target="_blank">Hexo主题</a>
          </li>
        
          <li>
            <a href="https://github.com/termux/termux-app/releases" target="_blank">Texmux神器</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
      
    </div>
    <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2022 Frank.Li<br>
      Powered by <a href="//hexo.io/" target="_blank">Hexo</a>
      .
      Theme by <a href="https://github.com/xiangming/landscape-plus" target="_blank">Landscape-plus</a>
    </div>
  </div>
</footer>
  </div>
  <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">首页</a>
  
    <a href="/archives" class="mobile-nav-link">按时间</a>
  
    <a href="/about" class="mobile-nav-link">关于我</a>
  
    <a href="/categories/%E6%91%98%E6%8A%84%E4%B8%8E%E9%9A%8F%E7%AC%94" class="mobile-nav-link">摘抄，随笔</a>
  
    <a href="/categories/%E5%BC%80%E5%85%B3%E7%94%B5%E6%BA%90" class="mobile-nav-link">开关电源</a>
  
</nav>
  <!-- totop start -->
<div id="totop">
<a title="返回顶部"><img src="/img/scrollup.png"/></a>
</div>

<!-- totop end -->


<!-- 百度分享 start -->

<div id="article-share-box" class="article-share-box">
  <div id="bdshare" class="bdsharebuttonbox article-share-links">
    <a class="article-share-weibo" data-cmd="tsina" title="分享到新浪微博"></a>
    <a class="article-share-weixin" data-cmd="weixin" title="分享到微信"></a>
    <a class="article-share-qq" data-cmd="sqq" title="分享到QQ"></a>
    <a class="article-share-renren" data-cmd="renren" title="分享到人人网"></a>
    <a class="article-share-more" data-cmd="more" title="更多"></a>
  </div>
</div>
<script>
  function SetShareData(cmd, config) {
    if (shareDataTitle && shareDataUrl) {
      config.bdText = shareDataTitle;
      config.bdUrl = shareDataUrl;
    }
    return config;
  }
  window._bd_share_config={
    "common":{onBeforeClick: SetShareData},
    "share":{"bdCustomStyle":"/css/bdshare.css"}
  };
  with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='//bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
</script>

<!-- 百度分享 end -->

<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>





<script src="/js/script.js"></script>


</div>
</body>
</html>
